home *** CD-ROM | disk | FTP | other *** search
/ PC Player 2004 May / pc player 2004-05.iso / Demos / FarCry / Data1.cab / _5ED33172D6EA40D8AACB55B62D153D79 < prev    next >
Encoding:
Text File  |  2004-01-06  |  1.1 KB  |  41 lines

  1. ; Shaders Script file
  2. ; Copyright (c) 2001-2003 Crytek Studios. All Rights Reserved.
  3. ; Author: Honich Andrey
  4.  
  5. Version (1.00)
  6.  
  7. //========================================================================
  8. // ATI R3xx / NVidia NV3X (PS.2.0 / PS.2.X only)
  9.  
  10. // Specular & Diffuse bump-mapping with env. CM reflections masked by gloss-map (alpha channel of diffuse texture)
  11. // and with specular exp. in alpha channel of gloss texture
  12. // At least two passes for multiple light sources
  13. // One pass for single light source
  14.  
  15. // Supports:
  16. // 1. Dot3 light maps
  17. // 2. Simple light maps
  18. // 3. Three types of shadow maps (2D, Depth-maps and mixed Depth/2D)
  19. // 4. Stencil shadows
  20. // 5. Three types of light sources (Directional, Point/Omni, Projected)
  21. // 6. Optimised separate techniques for Single/Multiple light sources
  22.  
  23. Shader 'TemplBumpSpec_GlossAlpha_EnvCMAmb_PowerGlossAlpha_PS20'
  24. (
  25.   Params
  26.   (
  27.     Sort = Opaque
  28.   )
  29.   Public
  30.   (
  31.     float 'ReflectAmount' (0.25)
  32.     float 'SpecularExpMultiplier' (255)
  33.   )
  34.   
  35.   #define $ENVCMAP $CubeMap
  36.   #include "BumpSpecular_GlossAlpha_EnvCM_PowerGlossAlpha_PS20.csi"  
  37.   #undefine $ENVCMAP
  38. )
  39.  
  40.  
  41.